package com.lxyk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxyk.pojo.Customer;
import com.lxyk.pojo.Worker;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName WorkerMapper
 * @Description TODO
 * @Author FJQ
 * @Date 2022/10/24 15:06
 * @Version 1.0
 **/
@Repository
public interface WorkerMapper extends BaseMapper<Worker> {
    List<Worker> listWorker(Worker worker);

    /**
     * 调整送水工工资
     * @param wid
     * @param workerSalary
     * @return
     */
    int addSalary(@Param("wid") Integer wid, @Param("workerSalary") Integer workerSalary);
}
